Auto merge of #4616 - kennytm:fix-4490, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 14 Oct 2017 14:54:15 +0000 (14:54 +0000)
committerbors <bors@rust-lang.org>
Sat, 14 Oct 2017 14:54:15 +0000 (14:54 +0000)
commitc1dd25a915ebe4456e83a568330a3dd00a5be12a
treee6e9c77b723aa6b52380af7f1b42f9b879fe290a
parentc0173bed00316a0e369e027ad7de32fc5234f8fb
parentdfd964a4ece3b9607b868623d4891bba90fac370
Auto merge of #4616 - kennytm:fix-4490, r=alexcrichton

Uplift *.dSYM

Fixed #4490.

The solution is based on #4570. Simply adding `.dSYM` into `add_target_specific_suffixes` will cause cargo trying to actually run that `.dSYM` folder, so I've upgraded the `linkable` boolean into a 3-value enum `TargetFileType`, to tell `cargo run` and `cargo test` to avoid these debug symbol files.

(I haven't checked if it can solve #4056, don't wanna mess with Spotlight 😝)